<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Reorder animation</title>
    <script type="module" src="./index.js"></script>
    <style>
      body {
        background: #fafafa;
        font-family: sans-serif;
      }
      h1 {
        font-weight: bold;
      }

      .wrap {
        width: 1000px;
        margin: 0 auto;
      }

      .buttonWrap {
        font-size: 18px;
        line-height: 40px;
      }

      .button {
        display: inline-block;
        font-size: 20px;
        padding: 0 20px;
        background-color: #eee;
        border: 1px #fff solid;
        color: #999;
        cursor: pointer;
        /*禁止选中文本*/
        -o-user-select: none;
        -moz-user-select: none; /*火狐 firefox*/
        -webkit-user-select: none; /*webkit浏览器*/
        -ms-user-select: none; /*IE10+*/
        -khtml-user-select: none; /*早期的浏览器*/
        user-select: none;
      }

      .button:active,
      .active {
        color: #000;
        background-color: #ddd;
      }

      .add {
        float: right;
        color: #000;
        background-color: #eee;
        border: 1px #ffffff solid;
      }

      .list {
        position: relative;
      }

      /* 使用相对定位产生位移的动画效果*/
      .row {
        position: absolute;
        padding: 16px 0;
        margin: 8px 0;
        border: 1px solid #ddd;
        background-color: #fff;
        transition: transform 0.5s ease-in-out, opacity 0.5s ease-out,
          left 0.5s ease-in-out;
        -webkit-transition: transform 0.5s ease-in-out, opacity 0.5s ease-out,
          left 0.5s ease-in-out;
      }

      .rowElme {
        display: inline-block;
        vertical-align: top;
      }

      .rank {
        width: 50px;
        text-align: center;
        font-weight: bold;
      }

      .title {
        width: 300px;
        padding: 0 10px;
      }

      .desc {
        width: 580px;
        padding-right: 40px;
      }

      .delete {
        position: absolute;
        right: 0;
        top: 0;
        width: 30px;
        line-height: 30px;
        text-align: center;
        color: #ac0b0b;
        cursor: pointer;
        background-color: #f6f6f6;
      }
    </style>
  </head>
  <body>
    <div id="container"></div>
  </body>
</html>
